record Vec3 {
    x : Int;
    y : Int;
    z : Int;
}

implement Vec3 {
    def add(self : Self, other : Self) : Self {
        return Vec3(self.x + other.x, self.y + other.y, self.z + other.z);
    }
}

var a = Vec3(1, 2, 3);
var b = Vec3(100, 100, 100);

print(a.add(b));
